// 留宿
import request from '@/router/axios'

//展示表格
export function stayHostObj(query) {
    return request({
        url: '/campus/stayDorm/studentsPage',
        method: 'get',
        params: query
    })
}

//留宿
export function EditStayHostObj(obj, startTime, endTime, timeDormId) {
    return request({
        url: '/campus/stayDorm',
        method: 'post',
        data: {
            studentId: obj.id,
            name: obj.name,
            number: obj.number,
            sex: obj.sex,
            grade: obj.pname,
            className: obj.dname,
            building: obj.buildingName,
            dormNumber: obj.dormNumber,
            timeMangeId: obj.timeMangeId,
            startTime: startTime,
            endTime: endTime,
            timeDormId: timeDormId,
        }
    })
}







